package com.ld.security.shop.crawler.modules.sea.api;

import com.ld.security.auth.common.anno.IgnoreUserToken;
import com.ld.security.common.core.base.po.PagePo;
import com.ld.security.common.core.base.vo.DataVo;
import com.ld.security.common.core.base.vo.PageVo;
import com.ld.security.shop.crawler.modules.sea.service.ISeaContentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/seaContent")
@Api(tags = "文章集合")
@IgnoreUserToken
public class SeaContentApi {

    @Autowired

    private ISeaContentService iSeaContentService;

    @ApiOperation("搜索")
    @RequestMapping(value = "/search",method = RequestMethod.POST)
    public DataVo search(PagePo<String> po){
        PageVo vo =  iSeaContentService.search(po);
        return DataVo.of(vo);
    }

}
